<?php
/**
 * com_bib      Developed using Nooku Framework 0.7 (see README.php for revision number)
 * @package		Bib
 * @copyright   Copyright (C) 2009 Danny Buytaert. All rights reserved.
 * @license     http://www.gnu.org/copyleft/gpl.html GNU/GPLv2
 */

class ComBibMixinSubmenu extends KMixinAbstract
{
	public function displaySubmenu()
	{
		$views =  array(
			'books' 			=> 'books list',
			'authors' 			=> 'authors',
			'genres' 			=> 'genres',
        );

        foreach($views as $view => $title)
		{
			$active = ($view == strtolower($this->_mixer->getIdentifier()->name) );
			JSubMenuHelper::addEntry(JText::_($title), 'index.php?option=com_bib&view='.$view, $active );
		}
	}

}